<!--
  @author yangjiangming
  @date 2018/11/26 10:00
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<zmn th:fragment="query">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">子公司：</label>
            <div class="layui-input-inline input-large">
                <div th:replace="common/listQueryItemTmpl :: selectForCompanyId"></div>
            </div>
            <label class="layui-form-label">城市：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForCityIdList"></div>
            </div>
            <label class="layui-form-label">工程师：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForMasterId"></div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">配件：</label>
            <div class="layui-input-inline" id="part-wrapper">
                <div th:replace="common/partListQueryItemTmpl :: inputPartName"></div>
            </div>
            <label class="layui-form-label">配件分类：</label>
            <div class="layui-input-inline">
                <div th:replace="common/partListQueryItemTmpl :: selectForpartType"></div>
            </div>
            <label class="layui-form-label">配件大类：</label>
            <div class="layui-input-inline">
                <div th:replace="common/partListQueryItemTmpl :: selectForPartCategOne"></div>
            </div>
            <label class="layui-form-label">配件小类：</label>
            <div class="layui-input-inline">
                <div th:replace="common/partListQueryItemTmpl :: selectForPartCategTwo"></div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">报销状态：</label>
            <div class="layui-input-inline">
                <div th:replace="common/partListQueryItemTmpl :: selectForPartReimburseStatus"></div>
            </div>
            <label class="layui-form-label">工单号：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: inputForCode"></div>
            </div>
            <div class="layui-input-inline inline-btn">
                <div th:replace="common/listQueryItemTmpl :: buttonForSearch"></div>
                <div th:replace="common/listQueryItemTmpl :: buttonForClean"></div>
                <div th:if="${#authPermit.checkPermit('/zs/order/orderpart/export.action')}"
                     th:replace="common/listQueryItemTmpl :: buttonForExport"></div>
            </div>
        </div>
    </div>

    <!-- 算账时间 -->
    <div class="layui-form-item">
        <div th:replace="~{common/listQueryItemTmpl :: accountTime(true)}"></div>
    </div>
    <!-- 配件报销 -->
    <div class="layui-form-item">
        <div th:replace="common/listQueryItemTmpl :: partReimburseTime"></div>
    </div>

    <!-- 时间选择框 -->
    <div class="layui-form-item">
        <div class="layui-inline layui-inline-left">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline" style="width: 500px">
                <input type="checkbox" title="算账时间" value="0" lay-skin="primary" lay-filter="datepicker" checked>
                <input type="checkbox" title="配件报销" value="1" lay-skin="primary" lay-filter="datepicker">
            </div>
        </div>
    </div>
</zmn>